package dto;

import java.io.Serializable;

/**
 * 暴露秒杀地址 dto
 * @author Administrator
 *
 */
public class Exposer implements Serializable{
	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 5766298318236829774L;
	
	/**
	 * 秒杀是否开启
	 */
	private boolean isExposed;
	/**
	 * 加密措施
	 */
	private String md5;
	/**
	 * 秒杀商品Id
	 */
	private long seckillId;
	/**
	 * 当前系统时间(毫秒)
	 */
	private long now;
	/**
	 * 秒杀开启时间(毫秒)
	 */
	private long start;
	/**
	 * 秒杀结束时间(毫秒)
	 */
	private long end;
	public Exposer(boolean isExposed, String md5, long seckillId) {
		super();
		this.isExposed = isExposed;
		this.md5 = md5;
		this.seckillId = seckillId;
	}
	public Exposer(boolean isExposed, long seckillId, long now, long start, long end) {
		super();
		this.isExposed = isExposed;
		this.seckillId = seckillId;
		this.now = now;
		this.start = start;
		this.end = end;
	}
	public Exposer(boolean isExposed, long seckillId) {
		super();
		this.isExposed = isExposed;
		this.seckillId = seckillId;
	}
	public boolean getIsExposed() {
		return isExposed;
	}
	public void setIsExposed(boolean isExposed) {
		this.isExposed = isExposed;
	}
	public String getMd5() {
		return md5;
	}
	public void setMd5(String md5) {
		this.md5 = md5;
	}
	public long getSeckillId() {
		return seckillId;
	}
	public void setSeckillId(long seckillId) {
		this.seckillId = seckillId;
	}
	public long getNow() {
		return now;
	}
	public void setNow(long now) {
		this.now = now;
	}
	public long getStart() {
		return start;
	}
	public void setStart(long start) {
		this.start = start;
	}
	public long getEnd() {
		return end;
	}
	public void setEnd(long end) {
		this.end = end;
	}
	@Override
	public String toString() {
		return "Exposer [isExposed=" + isExposed + ", md5=" + md5 + ", seckillId=" + seckillId + ", now=" + now
				+ ", start=" + start + ", end=" + end + "]";
	}
	
}
